﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ApplyRead.aspx.cs" Inherits="Announcement.ApplyRead" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>房地产登记机构官方网站刊登公告申请表</title>
    <link href="../css/Default.css" rel="stylesheet" type="text/css" />
    <link href="../css/style.css" rel="stylesheet" type="text/css" />
    <script src="../My97DatePicker/WdatePicker.js" type="text/javascript"></script>
</head>
<body>
    <form id="form1" runat="server">
    <header id="top">
		<div class="wrapper">
			<!-- Title/Logo - can use text instead of image -->
			<div id="title">
			<a href="../ApplyList.aspx">
			<img SRC="img/lzfcjys_logo.png" alt="lzfcjys" />
			</a>
			</div>
			<!-- Top navigation -->
			<div id="topnav">
				<a href="#"><img class="avatar" SRC="img/user_32.png" alt="" /></a>
				Logged in as <b>lzfcjys</b>
				<span>|</span> <asp:LinkButton ID="lbtnExit" runat="server" 
                    onclick="lbtnExit_Click">退出</asp:LinkButton><br />
			</div>
			
			
			<!-- End of Aside links -->
		</div>
	</header>
	<div id="pagetitle">
	    <div class="wrapper">
	        <h1>首页 &rarr; <span>公告申请表</span></h1>
	    </div>
	</div>
    
    <div id="mainbox">
        
        <div>
            <asp:ObjectDataSource ID="odsApply" runat="server" DeleteMethod="Delete" 
                InsertMethod="Insert" SelectMethod="GetDataById" TypeName="Announcement.DAL.DataSetApplyDetailsTableAdapters.T_ApplyTableTableAdapter"
                UpdateMethod="Update" OldValuesParameterFormatString="original_{0}">
                <DeleteParameters>
                    <asp:Parameter Name="Original_Id" Type="Int64" />
                </DeleteParameters>
                <UpdateParameters>
                    <asp:Parameter Name="ContractCode" Type="String" />
                    <asp:Parameter Name="Applicant" Type="String" />
                    <asp:Parameter Name="Legal" Type="String" />
                    <asp:Parameter Name="CardTpye" Type="String" />
                    <asp:Parameter Name="CardNum" Type="String" />
                    <asp:Parameter Name="Agents" Type="String" />
                    <asp:Parameter Name="Phone" Type="String" />
                    <asp:Parameter Name="CardType2" Type="String" />
                    <asp:Parameter Name="CardNum2" Type="String" />
                    <asp:Parameter Name="HouseLocated" Type="String" />
                    <asp:Parameter Name="HouseNum" Type="String" />
                    <asp:Parameter Name="ApplyType" Type="Int32" />
                    <asp:Parameter Name="ApplyDate" Type="DateTime" />
                    <asp:Parameter Name="IsPay" Type="Boolean" />
                    <asp:Parameter Name="Money" Type="Decimal" />
                    <asp:Parameter Name="GiftCode" Type="String" />
                    <asp:Parameter Name="Shifter" Type="String" />
                    <asp:Parameter Name="Gifter" Type="String" />
                    <asp:Parameter Name="Original_Id" Type="Int64" />
                </UpdateParameters>
                <SelectParameters>
                    <asp:QueryStringParameter DefaultValue="" Name="Id" QueryStringField="Id" 
                        Type="Int64" />
                </SelectParameters>
                <InsertParameters>
                    <asp:Parameter Name="ContractCode" Type="String" />
                    <asp:Parameter Name="Applicant" Type="String" />
                    <asp:Parameter Name="Legal" Type="String" />
                    <asp:Parameter Name="CardTpye" Type="String" />
                    <asp:Parameter Name="CardNum" Type="String" />
                    <asp:Parameter Name="Agents" Type="String" />
                    <asp:Parameter Name="Phone" Type="String" />
                    <asp:Parameter Name="CardType2" Type="String" />
                    <asp:Parameter Name="CardNum2" Type="String" />
                    <asp:Parameter Name="HouseLocated" Type="String" />
                    <asp:Parameter Name="HouseNum" Type="String" />
                    <asp:Parameter Name="ApplyType" Type="Int32" />
                    <asp:Parameter Name="ApplyDate" Type="DateTime" />
                    <asp:Parameter Name="IsPay" Type="Boolean" />
                    <asp:Parameter Name="Money" Type="Decimal" />
                    <asp:Parameter Name="GiftCode" Type="String" />
                    <asp:Parameter Name="Shifter" Type="String" />
                    <asp:Parameter Name="Gifter" Type="String" />
                </InsertParameters>
            </asp:ObjectDataSource>
            <asp:ObjectDataSource ID="odsApplyType" runat="server" DeleteMethod="Delete" InsertMethod="Insert"
                OldValuesParameterFormatString="original_{0}" SelectMethod="GetData" TypeName="Announcement.DAL.DataSetApplyTypeTableAdapters.T_ApplyTypeTableAdapter"
                UpdateMethod="Update">
                <DeleteParameters>
                    <asp:Parameter Name="Original_Id" Type="Int32" />
                </DeleteParameters>
                <UpdateParameters>
                    <asp:Parameter Name="Type_Name" Type="String" />
                    <asp:Parameter Name="Original_Id" Type="Int32" />
                </UpdateParameters>
                <InsertParameters>
                    <asp:Parameter Name="Id" Type="Int32" />
                    <asp:Parameter Name="Type_Name" Type="String" />
                </InsertParameters>
            </asp:ObjectDataSource>
            <asp:ObjectDataSource ID="odsCardType" runat="server" DeleteMethod="Delete" 
            InsertMethod="Insert" OldValuesParameterFormatString="original_{0}" 
            SelectMethod="GetData" 
            TypeName="Announcement.DAL.DataSetCardTypeTableAdapters.T_CardTypeTableAdapter" 
            UpdateMethod="Update">
            <DeleteParameters>
                <asp:Parameter Name="Original_Id" Type="Int32" />
            </DeleteParameters>
            <UpdateParameters>
                <asp:Parameter Name="CardName" Type="String" />
                <asp:Parameter Name="Original_Id" Type="Int32" />
            </UpdateParameters>
            <InsertParameters>
                <asp:Parameter Name="Id" Type="Int32" />
                <asp:Parameter Name="CardName" Type="String" />
            </InsertParameters>
            </asp:ObjectDataSource>
            
            
            
            <asp:FormView ID="fwApply" runat="server" DataKeyNames="Id" 
                DataSourceID="odsApply" onitemcommand="fwApply_ItemCommand" Width="100%" 
                    ondatabound="fwApply_DataBound">
               
                <ItemTemplate>
                    <div class="content-box">
						<header>
							<h3>房地产登记机构官方网站刊登公告申请表</h3>
						</header>
                
                    <table width="100%" class="display stylized">
                        <tr>
                            <asp:HiddenField ID="hfCCode" runat="server" Value='<%# Eval("ContractCode") %>' />
                            <td rowspan="4" width="50px" align="center" style="vertical-align:middle">
                                申<br />
                                请<br />
                                人
                            </td>
                            <td>
                                姓名（名称）
                            </td>
                            <td>
                                <asp:Label ID="ApplicantLabel" runat="server" Text='<%# Bind("Applicant") %>' />
                            </td>
                            <td>
                                法定代表人
                            </td>
                            <td>
                                <asp:Label ID="LegalLabel" runat="server" Text='<%# Bind("Legal") %>' />
                            </td>
                        </tr>
                        <tr>
                            <td>
                                证件类型
                            </td>
                            <td>
                                <asp:DropDownList ID="ddlCardType" runat="server" SelectedValue='<%# Bind("CardTpye") %>'
                                 DataSourceID="odsCardType" DataTextField="CardName" DataValueField="Id" Enabled="false">
                                </asp:DropDownList>
                            </td>
                            <td>
                                证件号码
                            </td>
                            <td>
                                <asp:Label ID="CardNumLabel" runat="server" Text='<%# Bind("CardNum") %>' />
                            </td>
                        </tr>
                        <tr>
                            <td>
                                代理人
                            </td>
                            <td>
                                <asp:Label ID="AgentsLabel" runat="server" Text='<%# Bind("Agents") %>' />
                            </td>
                            <td>
                                联系方式
                            </td>
                            <td>
                                <asp:Label ID="PhoneLabel" runat="server" Text='<%# Bind("Phone") %>' />
                            </td>
                        </tr>
                        <tr>
                            <td>
                                证件类型
                            </td>
                            <td>
                                <asp:DropDownList ID="ddlCardType2" runat="server" SelectedValue='<%# Bind("CardType2") %>'
                                 DataSourceID="odsCardType" DataTextField="CardName" DataValueField="Id" Enabled="false">
                                </asp:DropDownList>
                            </td>
                            <td>
                                证件号码
                            </td>
                            <td>
                                <asp:Label ID="CardNum2Label" runat="server" Text='<%# Bind("CardNum2") %>' />
                            </td>
                        </tr>
                    </table>
                    <table width="100%" class="display stylized">
                        <tr>
                            <td rowspan="3" width="50px" align="center" style="vertical-align:middle">
                                申<br />
                                请<br />
                                公<br />
                                告<br />
                                内<br />
                                容
                            </td>
                            <td>
                                房屋坐落
                            </td>
                            <td>
                                <asp:Label ID="HouseLocatedLabel" runat="server" Text='<%# Bind("HouseLocated") %>' />
                            </td>
                            <td>
                                房屋权属证号（登记证明号）
                            </td>
                            <td>
                                <asp:Label ID="HouseNumLabel" runat="server" Text='<%# Bind("HouseNum") %>' />
                            </td>
                        </tr>
                        <tr>
                            <td colspan="4" align="center">
                                现申请上述房地产以下内容
                            </td>
                        </tr>
                        <tr>
                            <td colspan="4">
                                <asp:RadioButtonList ID="rblApplyType" runat="server" SelectedValue='<%# Bind("ApplyType") %>'
                                    DataSourceID="odsApplyType" DataTextField="Type_Name" DataValueField="Id" Enabled="false">
                                </asp:RadioButtonList>
                            </td>
                        </tr>
                    </table>
                    <table width="100%" class="display stylized">
                        <tr>
                            <td rowspan="3" width="50px" align="center" style="vertical-align:middle">
                                其<br />
                                他
                            </td>
                            <td>
                                申请日期
                            </td>
                            <td>
                                <asp:Label ID="ApplyDateLabel" runat="server" Text='<%# Bind("ApplyDate","{0:yyyy-MM-dd}")%>' />
                            </td>
                            <td>
                                应付金额
                            </td>
                            <td>
                                <asp:Label ID="Money" runat="server" Text='<%# Bind("Money") %>'></asp:Label>
                            </td>
                            <td>
                                是否付款
                            </td>
                            <td>
                                <asp:CheckBox ID="IsPayCheckBox" runat="server" Checked='<%# Bind("IsPay") %>' Enabled="false" />
                            </td>
                        </tr>
                        <tr>
                            <td>
                                公告编号
                            </td>
                            <td>
                                <asp:Label ID="ContractCodeLabel" runat="server" Text='<%# Bind("ContractCode") %>' />
                            </td>
                            <td colspan="2">
                                房屋所有权转移为
                            </td>
                            <td colspan="2">
                                <asp:Label ID="ShifterLabel" runat="server" Text='<%# Bind("Shifter") %>' />
                            </td>
                        </tr>
                        <tr>
                            <td>
                                赠与合同编号
                            </td>
                            <td>
                                <asp:Label ID="GiftCodeLabel" runat="server" Text='<%# Bind("GiftCode") %>' />
                            </td>
                            <td colspan="2">
                                赠与人
                            </td>
                            <td colspan="2">
                                <asp:Label ID="GifterLabel" runat="server" Text='<%# Bind("Gifter") %>' />
                            </td>
                        </tr>
                    </table>
                    
                    </div>
                    
                    &nbsp;<asp:LinkButton ID="NewButton" runat="server" CausesValidation="False" CommandName="New"
                        Text="新建" />
                    &nbsp;<asp:LinkButton ID="GarageButton" runat="server" CommandName="EditGarage" 
                        Text="查看销售方案" Visible="False" />
                    &nbsp;<asp:LinkButton ID="AnnouncementButton" runat="server" CommandName="Announcement" 
                        Text="查看公告" />
                    &nbsp;<asp:LinkButton ID="BackButton" runat="server" CommandName="Back" Text="返回"/>
                </ItemTemplate>
            </asp:FormView>
            
        </div>
        
    </div>
    
    <footer id="bottom">
		<div class="wrapper">
			<p>Copyright &copy; 2010 <b><a href="http://www.lzfcjys.com" title="www.lzfcjys.com">www.lzfcjys.com</a></b> | Icons by <a href="http://www.lzfcjys.com">柳州市房产交易管理网</a></p>
		</div>
	</footer>
	
	</form>
</body>
</html>
